package com.example.gpstracking.broadcastreceiver;

import com.example.gpstracking.database.SharedPreferenceSaver;
import com.example.gpstracking.service.GPSService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class MyBootReceiver extends BroadcastReceiver{
	
	MyAlarmReceiver alarmReceiver = new MyAlarmReceiver();
	MyAlarmReceiverFlushMail alarmReceiverFlushMail = new MyAlarmReceiverFlushMail();
	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED"))
		{
			alarmReceiver.setAlarm(context, 1);
			alarmReceiverFlushMail.setAlarm(context, 1);
		}
	
	}

}
